<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Swdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-swdate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                data-use-current="true" name="row[swdate]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Name')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-name" data-rule="required" class="form-control" name="row[name]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-wh" class="form-control" name="row[wh]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Fwdw')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-fwdw" class="form-control" name="row[fwdw]" type="text">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sxdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sxdate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                data-use-current="true" name="row[sxdate]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Gqdate')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-gqdate" class="form-control datetimepicker" data-date-format="YYYY-MM-DD"
                data-use-current="true" name="row[gqdate]" type="text" value="{:date('Y-m-d')}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Jy')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-jy" class="form-control " rows="5" name="row[jy]" cols="50"></textarea>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Wjfiles')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="input-group">
                <input id="c-wjfiles" class="form-control" size="50" name="row[wjfiles]" type="text">
                <div class="input-group-addon no-border no-padding">
                    <span><button type="button" id="faupload-wjfiles" class="btn btn-danger faupload"
                            data-input-id="c-wjfiles" data-multiple="true" data-preview-id="p-wjfiles"
                            data-params='{"category":"category26"}' data-resize-quality="0.8" data-resize-width="1024"><i
                                class="fa fa-upload"></i> {:__('Upload')}</button></span>
                    <span><button type="button" id="fachoose-wjfiles" class="btn btn-primary fachoose"
                            data-input-id="c-wjfiles" data-multiple="true"><i class="fa fa-list"></i>
                            {:__('Choose')}</button></span>
                </div>
                <span class="msg-box n-right" for="c-wjfiles"></span>
            </div>
            <ul class="row list-inline faupload-preview" id="p-wjfiles" data-template="introtpl"
                data-name="row[intro]"></ul>
            <textarea name="row[intro]" class="form-control hidden" style="margin-top:5px;"></textarea>

            <!--这里自定义图片预览的模板 开始-->
            <script type="text/html" id="introtpl">
                <li class="col-xs-3">
                    <a href="<%=fullurl%>" data-url="<%=url%>" target="_blank" class="thumbnail">
                    <img src="<%=fullurl%>" onerror="this.src='https://tool.fastadmin.net/icon/'+'<%=fullurl%>'.split('.').pop()+'.png';this.onerror=null;" class="img-responsive"></a>
                    <input type="text" name="row[intro][<%=index%>]" class="form-control" placeholder="请输入文件描述" value="<%=value?value:''%>"/>
                    <a href="javascript:;" class="btn btn-danger btn-xs btn-trash"><i class="fa fa-trash"></i></a>
                </li>
            </script>
        </div>
    </div>
    <div class="form-group hidden">
        <label class="control-label col-xs-12 col-sm-2">{:__('Weigh')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-weigh" class="form-control" name="row[weigh]" type="number">
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-primary btn-embossed disabled">{:__('OK')}</button>
        </div>
    </div>
</form>